package com.lcq.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lcq.common.utils.PageUtils;
import com.lcq.gulimall.product.entity.AttrGroupEntity;
import com.lcq.gulimall.product.vo.AttrGroupRelationVo;
import com.lcq.gulimall.product.vo.AttrGroupVo;
import com.lcq.gulimall.product.vo.AttrRespVo;
import com.lcq.gulimall.product.vo.SpuItemAttrGroup;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author lichuanqi
 * @email lichuanqi0086@163.com
 * @date 2021-02-25 19:28:13
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Integer catId);

    List<AttrRespVo> queryAttrRelationList(Long gourpId);

    PageUtils queryNoAttrRelationPage(Map<String, Object> params, Long gourpId);

    void attrRelation(AttrGroupRelationVo[] attrGroupRelationVo);

    List<AttrGroupVo> getGroupWithAttr(Long catelogId);

    List<SpuItemAttrGroup> getGroupAttrs(Long catalogId, Long spuId);
}

